home *** CD-ROM | disk | FTP | other *** search
- on exitFrame
- global gSoundTrack, gGameLevel, gPauseTime
- resetCursor()
- playBonusSound(1, "BRA_X08")
- gSoundTrack = getAt(["BRM_A02", "BRM_A01"], (gGameLevel mod 2) + 1)
- playTrack()
- gPauseTime = 0
- end
-
- on beginSprite
- global debug, gBonusLimit, gFastPlay, gPlayerTipsThisLevel, gRecipeWindowOpenTime, gGameLevel, gRetrievedGame, gBonusStartTime, gLeftOverTime
- if not gRetrievedGame then
- gPlayerTipsThisLevel = 0
- end if
- gBonusLimit = seconds(currentLevel(#BONUSTIMELIMIT))
- closeRecipeWindow()
- if debug then
- put "Time recipe window was open" && gRecipeWindowOpenTime && seconds(gRecipeWindowOpenTime)
- end if
- if gLeftOverTime > 0 then
- extraTime = min(30, 5 * ticksToMinutes(gLeftOverTime))
- if debug then
- put "Earned an extra" && extraTime && " seconds in Bonus Round"
- end if
- gBonusLimit = gBonusLimit + seconds(extraTime)
- end if
- if (gGameLevel > 1) or authoring() then
- lostTime = min(30, 5 * ticksToMinutes(gRecipeWindowOpenTime))
- if debug then
- put "Lost" && lostTime && "seconds in Bonus Round for too much recipe window use"
- end if
- gBonusLimit = gBonusLimit + seconds(lostTime)
- end if
- if gFastPlay then
- gBonusLimit = gBonusLimit / 2
- end if
- if gRetrievedGame then
- restartBonusRound()
- gRetrievedGame = 0
- else
- gBonusStartTime = now()
- end if
- end
-